package com.tong.embeddedvr.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "aliyunconfig")
public class AliyunConfig {
    private String accessKeyId;
    private String secret;

    public AliyunConfig() {
    }

    public AliyunConfig(String accessKeyId, String secret) {
        this.accessKeyId = accessKeyId;
        this.secret = secret;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    @Override
    public String toString() {
        return "AliyunConfig{" +
                "accessKeyId='" + accessKeyId + '\'' +
                ", secret='" + secret + '\'' +
                '}';
    }


}
